//
//  topView.h
//  首页
//
//  Created by 赵东亮 on 2018/7/3.
//  Copyright © 2018年 赵东亮. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TopNavgatioModel.h"
//typedef void(^AutotrophyBlock)(NSInteger tag);


@interface topView : UIView

//// 购物是否为自营
//@property (copy, nonatomic) AutotrophyBlock autotrophyBlock;

// 购物界面topmargin
@property (strong, nonatomic) NSLayoutConstraint *topMargin;

// 购物界面 btnView
@property (strong, nonatomic) UIView *btnView;

// 进货界面topmargin
@property (strong, nonatomic) NSLayoutConstraint *stockTopMargin;

// 进货界面 btnView
@property (strong, nonatomic) UIView *stockBtnView;

// 区分是自营和首页
@property (assign, nonatomic) NSInteger type;

// controllerType 用于区分是 购物页面 还是进货界面（1) autotrophyBlock 购物是否为自营

- (instancetype)initWithControllerType:(NSInteger)controllerType;

- (void)reloadButtonImage:(NSArray *)array selectIndex:(NSInteger)selectIndex;

@property (nonatomic, copy) void (^topButtonClick)(NSString *nid);

//- (instancetype)initWithControllerType:(NSInteger)controllerType withBlock:(AutotrophyBlock)autotrophyBlock;

@end
